package com.csun.cmny.provider.service;

import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcPatrolReminder;
import com.csun.cmny.provider.model.dto.patrol.PatrolReminderQueryDto;
import com.csun.cmny.provider.model.vo.patrol.PatrolReminderVo;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2021/7/22 9:37
 * @Description: 巡更提醒接口
 */
public interface DmcPatrolReminderService extends IService<DmcPatrolReminder> {

    /**
     * 巡更提醒 - 分页查询
     *
     * @param patrolReminderQueryDto    the patrol reminder query dto
     *
     * @return  the patrol reminder vo list.
     */
    List<PatrolReminderVo> queryListWithPage(PatrolReminderQueryDto patrolReminderQueryDto);

    /**
     * 查询巡更提醒记录 - 待巡更
     *
     * @param date
     *
     * @return  the dmc patrol reminder
     */
    List<DmcPatrolReminder> queryWaitList(String date);

    /**
     * 更新巡更提醒 - 待巡更
     *
     * @param greatId   巡更棒ID
     * @param pointId   巡更点ID
     * @param patrolTime    巡更时间
     *
     * @return  the int.
     */
    Integer updateWait(Long greatId, Long pointId, String patrolTime);
    /*
    * 根据巡更棒id删除巡更提醒
    * */
    void deleteByPatrolId(Long deviceId);

    /*
    * 根据巡更点id删除巡更提醒
    * */
    void deleteByPointId(Long deviceId);
}
